package demo;

public class W4_LetterRunnable implements Runnable {
	private final W4_SynchMethod printer;

    public W4_LetterRunnable(W4_SynchMethod printer) {
        this.printer = printer;
    }

    @Override
    public void run() {
        for (char c = 'A'; c <= 'Z'; c++) {
            printer.printLetter(c);
        }
    }
}
